<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
include_once '../Login/databaseconnection.php';

if(!loggedin())
{
	require_once '../index.php';
}
   
   else
   {
  $Census_Number=$_POST['Census_Number'];
  if($Census_Number!="")
	   {
		  $del=mysql_query("DELETE FROM school WHERE Census_Number='$Census_Number'");
		  
	if($del)
  {
$_SESSION['error']="This record is successfully deleted!";
  }

  if(!$del)
  {
 $_SESSION['error']="Sorry unable to delete this record!";
 

  }
  }
  
 if($Census_Number=="")
	   {
		   $_SESSION['errorin']="Please select the censusnumber to delete!";
   
	   }  
   }
  ?>
</body>
</html>
